package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.GrainsituationRecord;

/**
 * 粮情主Service接口
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
public interface IGrainsituationRecordService 
{
    /**
     * 查询粮情主
     * 
     * @param id 粮情主主键
     * @return 粮情主
     */
    public GrainsituationRecord selectGrainsituationRecordById(Long id);

    /**
     * 查询粮情主列表
     * 
     * @param grainsituationRecord 粮情主
     * @return 粮情主集合
     */
    public List<GrainsituationRecord> selectGrainsituationRecordList(GrainsituationRecord grainsituationRecord);

    /**
     * 新增粮情主
     * 
     * @param grainsituationRecord 粮情主
     * @return 结果
     */
    public boolean insertGrainsituationRecord(GrainsituationRecord grainsituationRecord);

    /**
     * 修改粮情主
     * 
     * @param grainsituationRecord 粮情主
     * @return 结果
     */
    public boolean updateGrainsituationRecord(GrainsituationRecord grainsituationRecord);

    /**
     * 批量删除粮情主
     * 
     * @param ids 需要删除的粮情主主键集合
     * @return 结果
     */
    public boolean deleteGrainsituationRecordByIds(Long[] ids);

    /**
     * 删除粮情主信息
     * 
     * @param id 粮情主主键
     * @return 结果
     */
    public boolean deleteGrainsituationRecordById(Long id);
}
